<template>
<div style="width: 100%;height: 1000px;">
<h1>汽车客户交流系统</h1>
<div>
  <router-link to="/index">首页</router-link>
  <router-link to="/login">登陆</router-link>
  <router-link to="/register">注册</router-link>
  <a href="javascript:void (0)" @click="quit()">退出</a>
</div>
  <router-view/>
</div>
</template>

<script>
import axios from "axios";
export default {
  methods:{
     quit(){
  axios.get("/project/user/quit").then(resp=>{
    if (resp.data=="ok"){
      location.href="/login";
    }
  })
}
  }
}

</script>

<style>
a{
  margin-left: 20px;
}
div{
  border: 1px solid
}
</style>
